@echo off
echo 🤖 启动AI服务 (FastAPI)
echo.

REM AI服务配置
set QWEN_API_KEY=sk-77fea248756e43b5a3bb63838dd2da24
set DASHSCOPE_API_KEY=%QWEN_API_KEY%
set AI_HOST=0.0.0.0
set AI_PORT=8000
set AI_CORS_ORIGINS=http://localhost:5173,http://localhost:8080

REM 可选：其他AI服务密钥
REM set DEEPSEEK_API_KEY=你的DeepSeek密钥
REM set OPENAI_API_KEY=你的OpenAI密钥

echo 🔧 API密钥已设置
echo 🐍 启动Python FastAPI服务...
echo.

cd /d "%~dp0ai"

REM 确保依赖已安装
echo 📦 检查Python依赖...
pip install -r requirements.txt

REM 启动AI服务
python main.py

pause


